import Account from "../views/server/childCpn/Account";
import Company from "../views/server/account/Company";
import ChangePhone from "../views/server/account/ChangePhone";
import ChangePassword from "../views/server/account/ChangePassword";
import MyOrder from "../views/server/childCpn/MyOrder";
import All from "../views/server/myOrder/All";
import Wait from "../views/server/myOrder/Wait";
import Handle from "../views/server/myOrder/Handle";
import Finish from "../views/server/myOrder/Finish";
import Reject from "../views/server/myOrder/Reject";
import OrderCenter from "../views/server/childCpn/OrderCenter";
import Message from "../views/server/childCpn/Message";
import OrderDetail from "../views/server/myOrder/OrderDetail";

export default [
  {
    path: 'account',
    name: 'Account',
    component: Account,
    meta:{serActive : '0'},
    redirect: '/server/account/company',
    children: [
      {
        path: 'company',
        name: 'Company',
        component: Company,
        meta:{serActive : '0'},
      },
      {
        path: 'changePhone',
        name: 'ChangePhone',
        component: ChangePhone,
        meta:{serActive : '0'},
      },
      {
        path: 'changePassword',
        name: 'ChangePassword',
        component: ChangePassword,
        meta:{serActive : '0'},
      },
    ]
  },
  {
    path: 'myOrder',
    name: 'MyOrder',
    component: MyOrder,
    meta:{serActive : '1'},
    redirect: '/server/myOrder/all',
    children: [
      {
        path: 'all',
        name: 'All',
        component: All,
        meta:{serActive : '1'},
      },
      {
        path: 'wait',
        name: 'Wait',
        component: Wait,
        meta:{serActive : '1'},
      },
      {
        path: 'handle',
        name: 'Handle',
        component: Handle,
        meta:{serActive : '1'},
      },
      {
        path: 'finish',
        name: 'Finish',
        component: Finish,
        meta:{serActive : '1'},
      },
      {
        path: 'reject',
        name: 'Reject',
        component: Reject,
        meta:{serActive : '1'},
      },
      {
        path: 'orderDetail',
        name:'orderDetail',
        component: OrderDetail,
        meta:{
          name : '处理订单',
          serActive: '1'
        }
      }
    ]
  },
  {
    path: 'orderCenter',
    name: 'OrderCenter',
    component: OrderCenter,
    meta:{serActive : '2'},
  },
  {
    path: 'message',
    name: 'Message',
    component: Message,
    meta:{serActive : '3'},
  }
]